package com.itheima.sh.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description:
 * @Version: V1.0
 */
@Data
@ConfigurationProperties(prefix="person")
@Component
public class Person {

    private Integer id;
    private String name;
    private Integer age;

    private User user;


    @Data
    public static class User {
        private String username;
        private Integer age;

        private List<Integer> adds;

    }
}
